﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Text;
using System.Linq;
using System.Windows.Forms;
using DevExpress.XtraEditors;

namespace POS
{
    public partial class ServerCloseOutScreen : DevExpress.XtraEditors.XtraUserControl
    {
        public ServerCloseOutScreen()
        {
            InitializeComponent();

            comboBoxEdit1.Properties.Items.Clear();
            StaticProperties.GetEmployeeNameList();
            foreach (DataRow item in DataTableClass.EmployeeLogin.Rows)
            {
                if (item["EmployeeTitle"].ToString().Trim() == "SERVER")
                {
                    comboBoxEdit1.Properties.Items.Add(item["EmployeeFullName"].ToString().Trim());
                }
                else if (item["EmployeeTitle"].ToString().Trim() == "BAR TENDER")
                {
                    comboBoxEdit1.Properties.Items.Add(item["EmployeeFullName"].ToString().Trim());
                }
            }

            lblDate.Text = DateTime.Now.ToShortDateString();
        }

        private void simpleButton3_Click(object sender, EventArgs e)
        {
            labelControl2.Visible = false;
            textEdit1.Visible = false;
            simpleButton3.Visible = false;

            labelControl24.Visible = false;
            comboBoxEdit1.Visible = false;

            labelControl5.Visible = true;
            labelControl6.Visible = true;
            labelControl7.Visible = true;
            labelControl8.Visible = true;
            lblTotalSales.Visible = true;
            lblPayoutTotal.Visible = true;
            //lblNoTickets.Visible = true;
            lblServerTakeHome.Visible = true;

            labelControl9.Visible = true;
            labelControl10.Visible = true;
            labelControl11.Visible = true;
            labelControl12.Visible = true;
            labelControl14.Visible = true;

            lblSales.Visible = true;
            lblTotalTaxCollected.Visible = true;
            lblTotalAutoGrats.Visible = true;
            lblTotalGrats.Visible = true;
            lblMoneyCollected.Visible = true;

            labelControl15.Visible = true;
            labelControl17.Visible = true;
            lblTotalCC.Visible = true;
            lblTotalCash.Visible = true;


            labelControl19.Visible = true;
            labelControl21.Visible = true;
            labelControl18.Visible = true;
            lblNoBills.Visible = true;

            simpleButton1.Visible = true;
            simpleButton2.Visible = true;
        }
    }
}
